﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/User.Master" AutoEventWireup="true" CodeBehind="SelectBZX.aspx.cs" Inherits="CoolERP_Web.User.SelectBZX" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../Scripts/lhgdialog/lhgcore.min.js" type="text/javascript"></script>
<script type="text/javascript">
    var dg = frameElement.lhgDG;
    function selThis(obj) {
        J('#hidID', dg.curDoc).val($(obj).val());
        J('#txtMC', dg.curDoc).val($(obj).closest("tr").find("td").eq(3).text());
        dg.cancel();
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class=tbHead_L></td>
        <td class=tbHead_M><div><b>选择包装箱</b></div></td>
        <td class=tbHead_R></td>
    </tr>
    <tr>
        <td class=tbBody_L></td>
        <td class=tbBody_M>
            <ul class=tags style="width:95%;">
                <li class=liTitle><div>查询</div></li>
            </ul>
            <table class="grvCSS" cellspacing="0" cellpadding=2 border="1" style="width:95%;border-collapse:collapse;">
                <tr>
                    <td style="text-align:right">产品线：</td><td style="text-align:left"><asp:DropDownList ID="ddlCPX" runat="server" CssClass="dropdown" AutoPostBack=true OnSelectedIndexChanged="ddlCPX_SelectedIndexChanged"/></td>
                    <td style="text-align:right">产品核心词：</td><td style="text-align:left"><asp:DropDownList ID="ddlCPHXC" runat="server" CssClass="dropdown"/></td>
                    <td style="text-align:right">包装类型：</td><td style="text-align:left"><asp:DropDownList ID="ddlLX" runat="server" CssClass="dropdown">
                        <asp:ListItem Value="">所有类型</asp:ListItem><asp:ListItem Value="0">普通包装</asp:ListItem><asp:ListItem Value="1">标准包装</asp:ListItem>
                    </asp:DropDownList></td>
                </tr>
                <tr>
                    <td style="text-align:right">编号：</td><td style="text-align:left"><asp:TextBox ID="tbBH" runat="server" CssClass="textbox"/></td>
                    <td style="text-align:right">名称：</td><td style="text-align:left"><asp:TextBox ID="tbMC" runat="server" CssClass="textbox"/></td>
                    <td colspan=2><asp:ImageButton ID="btnQuery" runat="server" ImageUrl="~/Images/Common/btn_query0.png" onclick="btnQuery_Click" />
                    &nbsp;&nbsp;<asp:ImageButton ID="btnReset" runat="server" ImageUrl="~/Images/Common/btn_reset0.png" OnClick="btnReset_Click" />
                    &nbsp;&nbsp;<input type=image src="../Images/Common/btn_close.png" onclick="dg.cancel();" /></td>
                </tr>
            </table>
            <ul class=tags style="width:95%;">
                <li class=liTitle><div>包装箱列表</div></li>
            </ul>
            <asp:GridView ID="GridView1" runat="server" DataKeyNames="ID" Width="95%" CssClass="grvCSS" AutoGenerateColumns="False" AllowPaging="True"
                PageSize=20 ClientIDMode=Static>
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate><input type=radio id="chkSel" name="chkSel" value='<%# Eval("ID") %>' onclick="selThis(this)" /></ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="包装类型">
                    <ItemTemplate><%# Convert.ToInt32(Eval("BZXLX")) == 0 ? "普通包装" : "标准包装"%></ItemTemplate>
                </asp:TemplateField>      
                <asp:BoundField DataField="BH" HeaderText="编号"/>
                <asp:BoundField DataField="MC" HeaderText="名称"/>
                <asp:TemplateField>
                    <HeaderTemplate>外（长*宽*高）</HeaderTemplate>
                    <ItemTemplate><%# Eval("WChang")%>*<%# Eval("WKuan")%>*<%# Eval("WGao")%></ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="TJ" HeaderText="体积"/>    
                <asp:BoundField DataField="ZL" HeaderText="重量"/>
                <asp:BoundField DataField="BZFS" HeaderText="包装方式"/>
                <asp:BoundField DataField="BZ" HeaderText="备注" />
            </Columns>
            <PagerSettings Visible=false />
            </asp:GridView>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass="pager" UrlPaging="false" ShowCustomInfoSection="Left"
                FirstPageText="首页" LastPageText="尾页" PrevPageText="前页" NextPageText="后页" OnPageChanged="AspNetPager1_PageChanged" 
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" PageIndexBoxType="TextBox" ShowPageIndexBox="Always" 
                SubmitButtonText="Go" CustomInfoHTML="共%RecordCount%条数据，每页%PageSize%条，共%PageCount%页，当前为第%CurrentPageIndex%页">
            </webdiyer:AspNetPager>
            <asp:Panel ID="panMsg" runat="server" ClientIDMode=Static CssClass="msg24_attention" Visible=false>无相关数据</asp:Panel>
        </td>
        <td class=tbBody_R></td>
    </tr>
    <tr>
        <td class=tbFoot_L></td>
        <td class=tbFoot_M></td>
        <td class=tbFoot_R></td>
    </tr>
</table>
</asp:Content>
